﻿/*******************************************************
 *
 * CLR版本：4.0.30319.42000
 * 说明：
 *
 * 历史记录：
 *     创建文件 Luomg 2021-08-23
 *
*******************************************************/
using System;
namespace EventBus {
    public partial class InMemoryEventBusSubscriptionsManager:IEventBusSubscriptionsManager {
        public class SubscriptionInfo {
            public bool IsDynamic { get; }
            public Type HandlerType { get; }
            private SubscriptionInfo(bool isDynamic,Type handlerType) {
                IsDynamic = isDynamic;
                HandlerType = handlerType;
            }
            public static SubscriptionInfo Dynamic(Type handlerType) {
                return new SubscriptionInfo(true,handlerType);
            }
            public static SubscriptionInfo Typed(Type handlerType) {
                return new SubscriptionInfo(false,handlerType);
            }
        }
    }
}